package com.mitac.mcd.cs.mobiletracking.socketserver.bean;

import java.util.Date;

public class TcpSocketBean {
	
	private String id;
	//private MobileServerThread mobileServerThreadObj;
	private Date startTime;
	private Date eachRecieveDataTime;
	private Date finishAutTime;
	private boolean autFlag = false;
	private Date firstGpsUploadTime = null;
	private Date secondGpsUploadTime = null;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public boolean isAutFlag() {
		return autFlag;
	}
	public void setAutFlag(boolean autFlag) {
		this.autFlag = autFlag;
	}
	public Date getFirstGpsUploadTime() {
		return firstGpsUploadTime;
	}
	public void setFirstGpsUploadTime(Date firstGpsUploadTime) {
		this.firstGpsUploadTime = firstGpsUploadTime;
	}
	public Date getSecondGpsUploadTime() {
		return secondGpsUploadTime;
	}
	public void setSecondGpsUploadTime(Date secondGpsUploadTime) {
		this.secondGpsUploadTime = secondGpsUploadTime;
	}
	
	public Date getFinishAutTime() {
		return finishAutTime;
	}
	public void setFinishAutTime(Date finishAutTime) {
		this.finishAutTime = finishAutTime;
	}
	public Date getEachRecieveDataTime() {
		return eachRecieveDataTime;
	}
	public void setEachRecieveDataTime(Date eachRecieveDataTime) {
		this.eachRecieveDataTime = eachRecieveDataTime;
	}
	public static void main(String[] args) throws InterruptedException{
		Date date1 = new Date();
		Thread.sleep(2*1000);
		Date date2 = new Date();
		System.out.println((int) ((date2.getTime()-date1.getTime())/1000));
	}
}
